﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Mate.Dto.Info
{
    public class DistrictTreeModel
    {
        public int id { get; set; }

        /// <summary>
        /// Desc:当前地区所属的上级地区ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? parentid { get; set; }

        /// <summary>
        /// Desc:地区名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string districtname { get; set; }
        /// <summary>
        /// Desc:是否启用 1 启用，2禁用
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? is_open { get; set; }

        private IList<DistrictTreeModel> _children;
        /// <summary>
        /// 子地区
        /// </summary>
        public IList<DistrictTreeModel> children
        {
            get { return _children ?? (_children = new List<DistrictTreeModel>()); }
            set { _children = value; }
        }
    }
}
